{extend name="public/base"}
{block name="head"}
<link rel="stylesheet" href="/public/editor/css/editormd.css" />
<script src="/public/editor/examples/js/jquery.min.js"></script>
<script src="/public/editor/editormd.js"></script>
{/block}
{block name="main"}
<div id="main" class="container">
    <form class="form-horizontal " action="./save" method="post">
        <fieldset>
            <legend>相册添加/修改</legend>
            <div class="control-group">
                <label class="control-label" for="title">主题</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" id="subject" name="subject" :value="subject" >
                </div>
            </div>

            <br/>
            <div class="form-actions">
                <button type="submit" class="btn btn-primary">保存修改</button>
                <button type="reset" class="btn">取消</button>
                <input type="hidden" name="id" :value="id" >
            </div>
        </fieldset>
    </form>
</div>
    <script>
        var data ={$content|raw};
        new Vue({
            el:"#main",
            data:data
        })
    </script>
{/block}